package com.chendx.store.api.seckill;

import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.seckill.dto.SeckillOrderDto;

/**
 * Created by chendx on 2022/4/22.
 */
public interface SeckillOrderControllerApi {

    /**
     * 添加抢购单
     * @param dto
     * @return
     */
    public ResponseResult add(SeckillOrderDto dto);

    /**
     * 查询抢单状态
     * @return
     */
    public ResponseResult queryStatus();

    /**
     * 查询未支付抢购订单
     * @return
     */
    public ResponseResult loadSeckillOrder(SeckillOrderDto dto);

    /**
     * 抢购单支付
     * @return
     */
    public ResponseResult pay();

    /**
     * 取消抢单
     * @return
     */
    public ResponseResult cancelOrder();

    /**
     * 查询抢购订单详情
     * @return
     */
    public ResponseResult one(String id);
}
